export default  function pageHelper(pageNum,pageSize,array){
  let total = array.length;
  let result = [];
  for (let i = (pageNum-1)*pageSize,j=0;i<total&&j<pageSize;i++,j++){
    result.push(array[i]);
  }
  return result;
}
